import './common/style/less/scrum.less'
import './common/style/less/skins/_all-skins.less'


import angular from 'angular';
import angularuibootstrap from 'angular-ui-bootstrap';
import uirouter from 'angular-ui-router';
import oclazyload from 'oclazyload';
//import treeControl from 'angular-tree-control';

import HomeRouteModule from './home/home.routing';
import ResourceRouteModule from './sys/resource/resource.routing';
import RoleRouteModule from './sys/role/role.routing';
import UserRouteModule from './sys/user/user.routing';
import DictRouteModule from './sys/dict/dict.routing';
import AlertComponent from './common/js/directive/alert.directive';
import Tree from './common/js/directive/tree.directive';
import Pages from './common/js/directive/pages.directive';

const MainAppModule = angular
    .module('travelApp', [
        uirouter,
        angularuibootstrap,
        oclazyload,
        HomeRouteModule,
        ResourceRouteModule,
        RoleRouteModule,
        UserRouteModule,
        DictRouteModule
    ]).directive('tree', Tree)
    .directive('alert', AlertComponent)
    .directive('pages', Pages);

export default MainAppModule;